<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                     {if $purchase_type==1 }   <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('order/purchase/add')?'':'hide'}" title="买箱入库" ><i class="fa fa-plus"></i> 买箱入库</a>{/if}
                        {if $purchase_type==2 }  <a data-title="租箱入库" data-url="order/purchase/rent_add" href="javascript:;" class="btn btn-success spec_add_btn" title="租箱入库" ><i class="fa fa-plus"></i> 租箱入库</a>{/if}
                        <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('order/purchase/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
<!--
                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('order/purchase/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
-->
<!--
                        <a href="javascript:;" class="btn btn-info btn-import {:$auth->check('order/purchase/add')?'':'hide'}"   href="migrate/import_plan" title="箱计划导入" ><i class="fa fa-plus"></i> 箱计划导入</a>
-->
                        <button type="button" href={:url("migrate/import_plan")} class="btn btn-info btn-import" title="箱计划导入"  data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-plus"></i> 箱计划导入</button>


                        

                        
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('order/purchase/edit')}"
                           data-operate-del="{:$auth->check('order/purchase/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
